package ynu.sxp.demoapp.entity;

import jakarta.persistence.*;
import lombok.Data;
import ynu.sxp.demoapp.common.BaseEntity;

import java.math.BigDecimal;

@Data
@Entity
@Table(name = "food")
public class Food extends BaseEntity {
    @Column(length = 30, nullable = false)
    private String foodName;

    @Column(length = 30, nullable = false)
    private String foodExplain;

    @Column(nullable = false)
    private String foodImg;

    @Column(precision = 5, scale = 2, nullable = false)
    private BigDecimal foodPrice; // 修改为 BigDecimal

    @Column(nullable = false)
    private Integer businessId;

    @Column(length = 40)
    private String remarks;
}